﻿<%@ Page Title="用户管理" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="User.aspx.cs" Inherits="WorkSummaryReoprter.Report" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="./JS/User.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
    <div class="panel-body" style="padding-bottom: 0px;">

        <!--查询-->
        <form id="formSearch" class="form-horizontal">
            <div class="form-group">
                <label class="control-label col-sm-1" for="search_username">用户名:</label>
                <div class="col-sm-2">
                    <input type="text" id="search_username" class="form-control" name="username" />
                </div>
                <div class="btn-group">
                    <button type="button" id="btn_query" class="btn btn-primary">查询</button>
                    <button type="button" id="btn_clear" class="btn btn-info">清空</button>
                </div>
            </div>
        </form>

        <!--toolbar-->
        <div id="toolbar" class="btn-group">
            <button id="btn_add" type="button" class="btn btn-default">
                <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>新增
            </button>
            <button id="btn_edit" type="button" class="btn btn-default">
                <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>修改
            </button>
            <button id="btn_delete" type="button" class="btn btn-default">
                <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>删除
            </button>
        </div>
        <!--table-->
        <table id="tb_user"></table>

        <!--新增用户modal-->
        <div class="modal fade" id="Modal_add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="false">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                            &times;
                        </button>
                        <h4 class="modal-title">新增用户
                        </h4>
                    </div>
                    <div class="modal-body">
                        <form id="add_form">
                            <div class="form-horizontal">
                                <div class="form-group">
                                    <div class="col-sm-12">
                                        <label class="control-label col-sm-2" for="add_username"><span class="text-danger">*</span>用户名:</label>
                                        <div class="col-sm-10">
                                            <input class="form-control" id="add_username" name="add_username" />
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-12">
                                        <label class="control-label col-sm-2" for="add_accountnum"><span class="text-danger">*</span>账号:</label>
                                        <div class="col-sm-10">
                                            <input class="form-control" id="add_accountnum" name="add_accountnum" />
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-12">
                                        <label class="control-label col-sm-2" for="add_pwd"><span class="text-danger">*</span>密码:</label>
                                        <div class="col-sm-10">
                                            <input type="password" class="form-control" id="add_pwd" name="add_pwd" />
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-12">
                                        <label class="control-label col-sm-2" style="padding-left: 10px;" for="add_confirm_pwd"><span class="text-danger">*</span>确认密码:</label>
                                        <div class="col-sm-10">
                                            <input type="password" class="form-control" id="add_confirm_pwd" name="add_confirm_pwd" />
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-12">
                                        <label class="control-label col-sm-2" for="add_remark">备注:</label>
                                        <div class="col-sm-10">
                                            <textarea class="form-control" id="add_remark" name="add_remark" rows="2"></textarea>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">
                            关闭
                        </button>
                        <button type="button" class="btn btn-primary" onclick="add_save()">
                            保存
                        </button>
                    </div>
                </div>
            </div>
        </div>
        <!--修改用户modal-->
        <div class="modal fade" id="Modal_edit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="false">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                            &times;
                        </button>
                        <h4 class="modal-title">修改用户
                        </h4>
                    </div>
                    <div class="modal-body">
                        <form id="edit_form">
                            <div class="form-horizontal">
                                <input type="hidden" id="edit_userid" name="edit_userid"/>
                                <div class="form-group">
                                    <div class="col-sm-12">
                                        <label class="control-label col-sm-2" for="edit_username"><span class="text-danger">*</span>用户名:</label>
                                        <div class="col-sm-10">
                                            <input class="form-control" id="edit_username" name="edit_username" />
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-12">
                                        <label class="control-label col-sm-2" for="edit_accountnum"><span class="text-danger">*</span>账号:</label>
                                        <div class="col-sm-10">
                                            <input class="form-control" id="edit_accountnum" name="edit_accountnum" />
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-12">
                                        <label class="control-label col-sm-2" for="edit_pwd"><span class="text-danger">*</span>密码:</label>
                                        <div class="col-sm-10">
                                            <input type="password" class="form-control" id="edit_pwd" name="edit_pwd" />
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-12">
                                        <label class="control-label col-sm-2" style="padding-left: 10px;" for="edit_confirm_pwd"><span class="text-danger">*</span>确认密码:</label>
                                        <div class="col-sm-10">
                                            <input type="password" class="form-control" id="edit_confirm_pwd" name="edit_confirm_pwd" />
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-12">
                                        <label class="control-label col-sm-2" for="edit_remark">备注:</label>
                                        <div class="col-sm-10">
                                            <textarea class="form-control" id="edit_remark" name="edit_remark" rows="2"></textarea>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">
                            关闭
                        </button>
                        <button type="button" class="btn btn-primary" onclick="edit_save()">
                            保存
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
